<?php
    require_once($_SERVER['DOCUMENT_ROOT'].'/ukkepuk/source/php/classes/model/AbstractEntity.php'); 
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Kid
 *
 * @author virtual
 */
class Kid extends AbstractEntity{
    private $id;
    private $name;
    private $firstName;
    private $profileImage;
    private $siblingKid;
    private $birthDay;
    private $creationDate;
    private $address;
    
    private $joinCalendar = array(); //list of calendar objects
    
    public function getId() {  return $this->id;    }
    public function getName() { return $this->name; }
    public function getFirstName() { return $this->firstName; }
    public function getProfileImage() { return $this->profileImage; }
    public function getSiblingKid() { return $this->siblingKid; }
    public function getBirthDay() { return $this->birthDay; }
    public function getCreationDate() { return $this->creationDate; }
    public function getAddress() { return $this->address; }
    
    public function setId($id) { $this->id = $id; }
    public function setName($name) { $this->name = $name; }
    public function setFirstName($firstName) { $this->firstName = $firstName; }
    public function setProfileImage($profileImage) { $this->profileImage = $profileImage; }
    public function setSiblingKid($siblingKid) { $this->siblingKid = $siblingKid; }
    public function setBirthDay($birthDay) { $this->birthDay = $birthDay; }
    public function setCreationDate($creationDate) { $this->creationDate = $creationDate; }
    public function setAddress($address) { $this->address = $address; }
    
    public function addCalendar($calendar) {
        $calendar->setKidsId($this->id);
        array_push($this->joinCalendar, $calendar);
    }
     public function getCalendar() { return $this->joinCalendar; }    
}

?>
